package com.t.bricks.bussiness.db.entity.loginuser.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.t.bricks.annotation.DataInfo;

/**
 * 用户表'LoginUser'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 */
@ApiModel("用户表LoginUser")
@DataInfo(sDbName="BricksBaseSystem", sTableName="LoginUser")
public class LoginUserBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 表编号
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="uId", sComment="表编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="表编号", example="", position=0)
	//[end]
	protected String uId;

	/**
	 * 名称
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="sName", sComment="名称", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="名称", example="", position=1)
	//[end]
	protected String sName;

	/**
	 * 标识(组合唯一)
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="sNo", sComment="标识(组合唯一)", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=64, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="标识(组合唯一)", example="", position=2)
	//[end]
	protected String sNo;

	/**
	 * 密码
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="sPass", sComment="密码", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=64, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="密码", example="", position=3)
	//[end]
	protected String sPass;

	/**
	 * 类型
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="sType", sComment="类型", isDbField=true, sDbFileType="varchar",
		sDefaultData="管理员", isExtra=false, iskey=false, isNull=false,
		iMaxLength=50, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="类型", example="管理员", position=4)
	//[end]
	protected String sType;

	/**
	 * 来源
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="sOwner", sComment="来源", isDbField=true, sDbFileType="varchar",
		sDefaultData="BricksBaseSystem.LoginUser", isExtra=false, iskey=false, isNull=true,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="来源", example="BricksBaseSystem.LoginUser", position=5)
	//[end]
	protected String sOwner;

	/**
	 * 备注
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="sMemo", sComment="备注", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=true,
		iMaxLength=200, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="备注", example="", position=6)
	//[end]
	protected String sMemo;

	/**
	 * 创建人员
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="sCreator", sComment="创建人员", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000000", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=7 )
	@ApiModelProperty(value="创建人员", example="00000000", position=7)
	//[end]
	protected String sCreator;

	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="dCreateDate", sComment="创建时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=8 )
	@ApiModelProperty(value="创建时间", example="", position=8)
	//[end]
	protected Date dCreateDate;

	/**
	 * 修改人员
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="sModifieder", sComment="修改人员", isDbField=true, sDbFileType="varchar",
		sDefaultData="00000000", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=9 )
	@ApiModelProperty(value="修改人员", example="00000000", position=9)
	//[end]
	protected String sModifieder;

	/**
	 * 修改时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="dModifiedDate", sComment="修改时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=10 )
	@ApiModelProperty(value="修改时间", example="", position=10)
	//[end]
	protected Date dModifiedDate;

	/**
	 * 状态(枚举,1:启用;2:禁用)
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="iState", sComment="状态(枚举,1:启用;2:禁用)", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=11 )
	@ApiModelProperty(value="状态(枚举,1:启用;2:禁用)", example="1", position=11)
	//[end]
	protected Integer iState;

	/**
	 * 序号
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="iIndex", sComment="序号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=12 )
	@ApiModelProperty(value="序号", example="1", position=12)
	//[end]
	protected Integer iIndex;

	/**
	 * 版本号
	 */
	//[start]
	@DataInfo( sDbName="BricksBaseSystem", sTableName="LoginUser",
		sName="iVersion", sComment="版本号", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=100, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=13 )
	@ApiModelProperty(value="版本号", example="1", position=13)
	//[end]
	protected Integer iVersion;

	/**
	 * 取 表编号
	 * @return String
	 */
	public String getuId() {
		return uId;
	}

	/**
	 * 设置表编号
	 * @param uId
	 */
	public void setuId(String uId) {
		this.uId = uId;
	}

	/**
	 * 取 名称
	 * @return String
	 */
	public String getsName() {
		return sName;
	}

	/**
	 * 设置名称
	 * @param sName
	 */
	public void setsName(String sName) {
		this.sName = sName;
	}

	/**
	 * 取 标识(组合唯一)
	 * @return String
	 */
	public String getsNo() {
		return sNo;
	}

	/**
	 * 设置标识(组合唯一)
	 * @param sNo
	 */
	public void setsNo(String sNo) {
		this.sNo = sNo;
	}

	/**
	 * 取 密码
	 * @return String
	 */
	public String getsPass() {
		return sPass;
	}

	/**
	 * 设置密码
	 * @param sPass
	 */
	public void setsPass(String sPass) {
		this.sPass = sPass;
	}

	/**
	 * 取 类型
	 * @return String
	 */
	public String getsType() {
		return sType;
	}

	/**
	 * 设置类型
	 * @param sType
	 */
	public void setsType(String sType) {
		this.sType = sType;
	}

	/**
	 * 取 来源
	 * @return String
	 */
	public String getsOwner() {
		return sOwner;
	}

	/**
	 * 设置来源
	 * @param sOwner
	 */
	public void setsOwner(String sOwner) {
		this.sOwner = sOwner;
	}

	/**
	 * 取 备注
	 * @return String
	 */
	public String getsMemo() {
		return sMemo;
	}

	/**
	 * 设置备注
	 * @param sMemo
	 */
	public void setsMemo(String sMemo) {
		this.sMemo = sMemo;
	}

	/**
	 * 取 创建人员
	 * @return String
	 */
	public String getsCreator() {
		return sCreator;
	}

	/**
	 * 设置创建人员
	 * @param sCreator
	 */
	public void setsCreator(String sCreator) {
		this.sCreator = sCreator;
	}

	/**
	 * 取 创建时间
	 * @return Date
	 */
	public Date getdCreateDate() {
		return dCreateDate;
	}

	/**
	 * 设置创建时间
	 * @param dCreateDate
	 */
	public void setdCreateDate(Date dCreateDate) {
		this.dCreateDate = dCreateDate;
	}

	/**
	 * 取 修改人员
	 * @return String
	 */
	public String getsModifieder() {
		return sModifieder;
	}

	/**
	 * 设置修改人员
	 * @param sModifieder
	 */
	public void setsModifieder(String sModifieder) {
		this.sModifieder = sModifieder;
	}

	/**
	 * 取 修改时间
	 * @return Date
	 */
	public Date getdModifiedDate() {
		return dModifiedDate;
	}

	/**
	 * 设置修改时间
	 * @param dModifiedDate
	 */
	public void setdModifiedDate(Date dModifiedDate) {
		this.dModifiedDate = dModifiedDate;
	}

	/**
	 * 取 状态(枚举,1:启用;2:禁用)
	 * @return Integer
	 */
	public Integer getiState() {
		return iState;
	}

	/**
	 * 设置状态(枚举,1:启用;2:禁用)
	 * @param iState
	 */
	public void setiState(Integer iState) {
		this.iState = iState;
	}

	/**
	 * 取 序号
	 * @return Integer
	 */
	public Integer getiIndex() {
		return iIndex;
	}

	/**
	 * 设置序号
	 * @param iIndex
	 */
	public void setiIndex(Integer iIndex) {
		this.iIndex = iIndex;
	}

	/**
	 * 取 版本号
	 * @return Integer
	 */
	public Integer getiVersion() {
		return iVersion;
	}

	/**
	 * 设置版本号
	 * @param iVersion
	 */
	public void setiVersion(Integer iVersion) {
		this.iVersion = iVersion;
	}

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return LoginUserBase
	 */
	public static LoginUserBase copy(LoginUserBase source) {
		if (null == source) {
			return null;
		}
		
		LoginUserBase target = new LoginUserBase();
		target.setuId(source.getuId());
		target.setsName(source.getsName());
		target.setsNo(source.getsNo());
		target.setsPass(source.getsPass());
		target.setsType(source.getsType());
		target.setsOwner(source.getsOwner());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return LoginUserBase
	 */
	public LoginUserBase clone() {
		return copy(this);
	}
	
}
